<include file="nav:header"/>
<div class="container-fluid">
    <div class="row">
        <include file="Left:left-Common"/>
        <!-- right -->
        <div class="col-md-10 right">
            <div class="page-header" style="margin-right: 15px">
                <h3>{$page_title}</h3>
            </div>
            <form class="article" action="{:U('Create/index')}" method="post">
                <div class="col-md-7">
                <div class="btn-group " role="group" aria-label="Large button group">
                    <a href="{:U('Create/create_page')}" type="button" class="btn btn-default"> ھاسىل بولغان بەتلەر</a>
                    <a href="{:U('Create/add')}" type="button" class="btn btn-default">بەت قوشۇش</a>
                </div>
                <br><br>
                <div class="form-group">
                    <input  name="title" type="text" class="form-control"  id="exampleInputEmail1" placeholder="ئۇچۇر تېمىسىنى يېزىڭ">
                </div>
                <br>
                <div class="form-group">
                    <include file="Editor"/>
                    <textarea  onkeydown="return proc_kd(event);" onkeypress="return addchar(this, event);" type="text/plain" style="min-height: 350px" id="content"  name="content"></textarea>
                </div>
            </div>
                <div class="hidden-xs" style="height: 50px"></div>
                <div class="col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading" style="font-size: 15px">  ئۇچۇرلار </div>
                        <div class="panel-body">
                            <input placeholder="تېمىسى1"  style="width: 30%"  name="my1_0" class="form-control pull-left" />
                            <input placeholder="قىممىتى1" style="width: 65%"  name="my1_1" class="form-control pull-right" />
                            <br><br>
                            <br>
                            <input  placeholder="تېمىسى2" style="width: 30%"  name="my2_0" class="form-control pull-left" />
                            <input placeholder="قىممىتى2" style="width: 65%"  name="my2_1" class="form-control pull-right" />
                            <br><br>
                            <br>
                            <input  placeholder="تېمىسى3" style="width: 30%"  name="my3_0" class="form-control pull-left" />
                            <input placeholder="قىممىتى3" style="width: 65%"  name="my3_1" class="form-control pull-right" />
                            <br><br>
                            <br>
                            <input  placeholder="تېمىسى4" style="width: 30%"  name="my4_0" class="form-control pull-left" />
                            <input placeholder="قىممىتى4" style="width: 65%"  name="my4_1" class="form-control pull-right" />
                            <br><br>
                            <br>
                            <input  placeholder="تېمىسى5" style="width: 30%"  name="my5_0" class="form-control pull-left" />
                            <input placeholder="قىممىتى5" style="width: 65%"  name="my5_1" class="form-control pull-right" />
                            <!--<br><br>-->
                            <!--<br>-->
                            <!--<input  style="width: 30%"  name="my4_0" class="form-control pull-left" />-->
                            <!--<input  style="width: 65%"  name="my4_1" class="form-control pull-right" />-->
                        </div>
                        <div class="panel panel-default">
                            <div class="panel-heading" style="font-size: 15px">  ئۇچۇر بېتى تەڭشەكلىرى </div>
                            <div class="panel-body" style="padding: 5px 0">
                                <div class="btn-group checkbox pull-left">
                                    <label >
                                        تەگلىك رەڭگى <input style="direction: ltr;text-align: right"   type="text" name="bgcolor"   class="form-control">
                                    </label>
                                    <label  >
                                        خەت رەڭگى <input style="direction: ltr;text-align: right"    type="text" name="color"   class="form-control">
                                    </label>
                                </div>
                            </div>
                        </div>
                        <script type="text/javascript">
                            $("#source").click(function () {
                                layer.open({
                                    type: 2,
                                    skin: 'layui-layer-lan',
                                    title: ['مەنبە قوشۇش', 'background:#1E9FFF;text-align: center'],
                                    fix: false,
                                    shadeClose: true,
                                    maxmin: true,
                                    area: ['25%', '45%'],
                                    content: "{:U('Admin/Article/source')}"
                                    //end: function () {           //关闭弹出层触发
                                    //    location.reload();       //刷新父界面，可改为其他
                                    //}
                                });
                            });
                            $("#test2").click(function () {
                                layer.open({
                                    type: 2,
                                    skin: 'layui-layer-lan',
                                    title: ['رەسىم ئامبىرى', 'background:#1E9FFF;text-align: center'],
                                    fix: false,
                                    shadeClose: true,
                                    maxmin: true,
                                    area: ['70%', '90%'],
                                    content: "{:U('Admin/Article/photo')}"
                                    //end: function () {           //关闭弹出层触发
                                    //    location.reload();       //刷新父界面，可改为其他
                                    //}
                                });
                            });
                            layui.use('upload', function(){
                                var upload = layui.upload;
                                //执行实例
                                var uploadInst = upload.render({
                                    elem: '#test1' //绑定元素
                                    ,url: '{:U("Article/upload")}' //上传接口
                                    ,done: function(res){
                                        //上传完毕回调
                                        if(res.status == 1){
                                            layer.alert(res.message, {
                                                title:"سېستىما ئەسكەرتىشى",
                                                btn:"بىلدىم",
                                                icon: 6,
                                                skin: 'layer-ext-moon',
                                                time:500
                                            });
                                            $("#thumb").val(res.src) ;
                                            $("#thumbface").css("display","block") ;
                                            $("#thumbface").attr("src","/"+res.src) ;
                                        }else{
                                            layer.alert(res.message, {
                                                title:"سېستىما ئەسكەرتىشى",
                                                btn:"بىلدىم",
                                                icon: 5,
                                                skin: 'layer-ext-moon',
                                                time:1000
                                            });
                                        }
                                    }
                                    ,error: function(){
                                        //请求异常回调
                                    }
                                });
                            });
                        </script>
                    </div>
                    <button style="width: 150px" type="submit" class="btn btn-primary">قوشۇش</button>
                    <!--<div class="panel panel-default">-->
                        <!--<div class="panel-heading" style="font-size: 15px">  ئەسەر تەۋسىيەلەش </div>-->
                        <!--<div class="panel-body" style="padding: 5px 0">-->
                            <!--<div style="margin-top: 10px;padding: 0 15px" class="btn-group checkbox ">-->
                                <!--<label class="checkbox-inline">-->
                                    <!--<input type="checkbox"  value="option1"> باش بەت-->
                                <!--</label>-->
                                <!--<label class="checkbox-inline">-->
                                    <!--<input type="checkbox"  value="option2"> خەۋەر-->
                                <!--</label>-->
                                <!--<label class="checkbox-inline">-->
                                    <!--<input type="checkbox"  value="option3"> مۇھىم-->
                                <!--</label>-->
                            <!--</div>-->
                        <!--</div>-->
                    <!--</div>-->
                </div>
            </form>
        </div>
    </div>
</div>
<div class="visible-md visible-lg" style="height:200px;"></div>
<script type="text/javascript">
    //时间选择器
    jeDate({
        dateCell:"#DefineTime",
        format:"YYYY-MM-DD hh:mm:ss",
        isinitVal:true,
        isTime:true, //isClear:false,
        minDate:"2014-09-19 00:00:00",
        okfun:function(val){alert(val)}
    })
</script>L
<include file="nav:footer"/>